package com.cskaoyan.service;

import com.cskaoyan.bean.*;
import com.cskaoyan.bean.params.BaseParam;
import com.cskaoyan.bean.params.RoleCreateBO;
import org.springframework.stereotype.Service;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/6
 * @TIME: 11:05
 * @PROJECT_NAME: mallproject2
 */
public interface RoleService {
    RoleListBean list(String name, BaseParam baseParam);

    RoleListBean options();

    RoleCreateVO create(RoleCreateBO roleCreateBO);

    int delete(Role role);

    int update(Role role);

    RolePermissions getPermissionsByRoleId(Integer roleId);

    int postPermissions(Integer roleId, String[] permissions);
}
